package org.bonorsoft.modules.mobile.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.bonorsoft.common.system.vo.DictModel;
import org.bonorsoft.modules.mobile.entity.MobileDict;

import java.util.List;

public interface MobileDictMapper extends BaseMapper<MobileDict> {

    public List<DictModel> queryDictItemsByCode(@Param("code") String code);

    @Deprecated
    public List<DictModel> queryTableDictItemsByCode(@Param("table") String table,@Param("text") String text,@Param("code") String code);


    public String queryDictTextByKey(@Param("code") String code, @Param("key") String key);

    @Deprecated
    public String queryTableDictTextByKey(@Param("table") String table, @Param("text") String text, @Param("code") String code, @Param("key") String key);

    @Deprecated
    String queryValueByParam(@Param("table") String table, @Param("text") String text, @Param("code") String code, @Param("key") String key, @Param("param") String param);

}
